﻿using System;
using System.ComponentModel;

namespace BuildIncrement {
    /// <summary>
    /// Individual project setting class
    /// </summary>
    [DefaultProperty("Enable")]
    public class ProjectSettings {
        /// <summary>
        /// Auto versioning enabled?
        /// </summary>
        [Category("Versioning"), Description("Enable auto versioning for this item"), DefaultValue(true)]
        public bool Enable { get; set; }

        /// <summary>
        /// Project start date
        /// </summary>
        [Category("General"), Description("Start date for build version calculation"), DisplayName("Start Date")]
        public DateTime StartDate { get; set; }

        /// <summary>
        /// Reset AssemblyInfo file's date?
        /// </summary>
        [Category("General"), Description("Reset date of AssemblyInfo file on completion"), DefaultValue(true)]
        public bool Reset { get; set; }

        /// <summary>
        /// Path of the project
        /// </summary>
        [Category("Location"), Description("Item full path"), ReadOnly(true)]
        public string Path { get; set; }

        public EnvDTE.Project Project;
    }
}
